exports.listDocs = function (req, res) {

    var sql = "select d.*,dc.* from docs as d,docs_category as dc where d.d_dcid = dc.dc_id";

    //查询分类列表
    sqliteDb.all(sql,function(err,data){

        if(err){
            return RES.errorResponse(res,"抱歉，文档列表获取失败");
        }

        console.log(data);
            
        Render.viewRender(req,res,'listDocs',{title:"文档管理列表页",docsData:data})
       
    });

}